//
//  HomeCollectionViewCell.swift
//  quizDemo
//
//  Created by LiuXing on 2017/9/10.
//  Copyright © 2017年 quiz. All rights reserved.
//

import UIKit

class HomeCollectionViewCell: UICollectionViewCell {
    
    var model: HomeModel? {
        didSet {
            self.colorView.backgroundColor = model?.itemColor
            self.itemLabel.text = model?.itemText
        }
    }

    @IBOutlet weak var colorView: UIView!
    @IBOutlet weak var itemLabel: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        colorView.layer.cornerRadius = 5
        colorView.layer.masksToBounds = true
    }

}
